/**
 * 
 */
package me.myachievements.web.tag;

import java.util.List;

import me.myachievements.persistence.tag.Tag;
import me.myachievements.persistence.tag.TagPersistenceManager;

import org.apache.wicket.model.LoadableDetachableModel;
import org.apache.wicket.spring.injection.annot.SpringBean;

/**
 * @author besseym
 *
 */
public class AssociatedTagsModel extends GoalTagsModel {
	
	/**
	 * Constructor
	 * @param goalId
	 */
	public AssociatedTagsModel(Long goalId){
		super(goalId);
	}

	/*
	 * (non-Javadoc)
	 * @see org.apache.wicket.model.LoadableDetachableModel#load()
	 */
	@Override
	protected List<Tag> load() {
		return tagPersistanceManager.getAssociatedTags(this.getGoalId());
	}

}
